﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VNPT.Data
{
    public partial class VTT_6_GTGT
    {
        public string DichVu { get; set; }

        public double Block6 { get; set; }
        public double Block6_DLK { get; set; }
        public double TiLe_Block6
        {
            get
            {
                if (this.Block6 == 0 && this.Block6_DLK == 0)
                {
                    return 0;
                }
                return this.Block6 > this.Block6_DLK ?
                    ((this.Block6 - this.Block6_DLK) / (this.Block6) * 100) :
                    ((this.Block6_DLK - this.Block6) / (this.Block6_DLK) * 100);
            }
        }


        public double Block1 { get; set; }

        public double Block1_DLK { get; set; }
       
        public double TiLe_Block1
        {
            get
            {
                if (this.Block1 == 0 && this.Block1_DLK == 0)
                {
                    return 0;
                }
                return this.Block1 > this.Block1_DLK ?
                    (this.Block1 - this.Block1_DLK) / (this.Block1) * 100 :
                    (this.Block1_DLK - this.Block1) / (this.Block1_DLK) * 100;
            }
        }
    }
}
